package cn.newtouch.basic.mapper;

import cn.newtouch.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    List<T> loadAll();

    T loadById(Long id);

    void save(T t);

    void remove(Long id);

    void update(T t);

    //分页查询：总条数
    Integer queryCount(BaseQuery query);

    //分页查询：数据
    List<T> queryData(BaseQuery query);


    //批量删除
    void patchDel(List<Long> ids);
}
